import request from '@/utils/request'

// 查询用户收藏房型和公寓列列表
export function listTbwish(query) {
  return request({
    url: '/apartment/tbwish/list',
    method: 'get',
    params: query
  })
}

// 查询用户收藏房型和公寓列详细
export function getTbwish(id) {
  return request({
    url: '/apartment/tbwish/' + id,
    method: 'get'
  })
}

// 新增用户收藏房型和公寓列
export function addTbwish(data) {
  return request({
    url: '/apartment/tbwish',
    method: 'post',
    data: data
  })
}

// 修改用户收藏房型和公寓列
export function updateTbwish(data) {
  return request({
    url: '/apartment/tbwish',
    method: 'put',
    data: data
  })
}

// 删除用户收藏房型和公寓列
export function delTbwish(id) {
  return request({
    url: '/apartment/tbwish/' + id,
    method: 'delete'
  })
}
